home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / error < prev    next >
Text File  |  1994-04-25  |  604b  |  18 lines

  1. error:
  2.  
  3. Syntax:    error ( )
  4.     error ( "error message" )
  5.  
  6. Description:
  7.  
  8.     The error function allows user-functions to jump back to the
  9.     prompt when some sort of error has occurred. The nature of the
  10.     error is up to the user. When an error is detected the user
  11.     simply calls error(). If no argument is supplied, error() will
  12.     print the default message. Otherwise, error prints the string
  13.     supplied as an argument, and jumps back to the prompt.
  14.  
  15.     Jumping "back to the prompt" means execution of the current
  16.     loop or function is terminated immediately and execution of
  17.     any prompt-level statements is performed.
  18.